import { lazy } from 'react'

const loginRoutes = [
  {
    key: 'login',
    name: '登录',
    path: '/login',
    exact: true,
    component: lazy(() => import(/* webpackChunkName: "login" */ '@/pages/login'))
  }
]

const mainRoutes = [
  {
    key: 'index',
    name: '首页',
    path: '/',
    exact: true,
    component: lazy(() => import(/* webpackChunkName: "index" */ '@/pages/index'))
  },
  {
    key: 'assetResearch',
    name: '市场研究',
    exact: true,
    children: [
      {
        key: 'assetResearch',
        name: '市场概览',
        path: '/echarts',
        exact: true,
        component: lazy(() => import(/* webpackChunkName: "echarts" */ '@/pages/echarts'))
      },
      {
        key: 'fundResearch',
        name: '内部研报',
        path: '/reportFile',
        exact: true,
        component: lazy(() => import(/* webpackChunkName: "reportFile" */ '@/pages/reportFile'))
      },
      {
        key: 'siderLayout',
        name: '内部研报',
        path: '/slider',
        exact: true,
        component: lazy(() => import(/* webpackChunkName: "siderLayout" */ '@/pages/slider'))
      }
    ]
  },
  {
    key: 'assetResearch',
    name: '基金研究',
    exact: true,
    children: [
      {
        key: 'xxx',
        name: '内部研报',
        path: '/xxx',
        exact: true,
        component: lazy(() => import(/* webpackChunkName: "siderLayout" */ '@/pages/slider'))
      }
    ]
  },
  {
    key: 'assetAllocation',
    name: '资产配置',
    exact: true,
    children: []
  },
  {
    key: 'portfolio',
    name: '组合管理',
    exact: true,
    children: []
  },
  {
    key: 'systemSettings',
    name: '系统管理',
    exact: true,
    children: []
  }
]

export default {
  loginRoutes,
  mainRoutes
}
